using Godot;
using System;
using RoboRampage.Player;

public partial class Lava : Area3D
{
    public void onBodyEntered(Node3D body)
    {
        if (body.IsInGroup("player"))
        {
            Player player = (Player)body;
            player.CurrHitpoints = 0;
        }

        if (body is Enemy)
        {
            Enemy enemy = (Enemy)body;
            enemy.CurrHitpoints = 0;
        }
    }
}